package com.ZengQi.event.entity;

/**
 * 与数据库中commernt表对应的类
 */
public class Comment {
    /**
     * comment表的主键用以确保唯一性
     */
    private int commentId;
    /**
     * 评论发表者
     */
    private String commentPublisher;
    /**
     * 评论内容
     */
    private String commentContent;
    /**
     * 评论的题目
     */
    private String topicName;

    public int getCommentId() {
        return commentId;
    }

    public void setCommentId(int commentId) {
        this.commentId = commentId;
    }

    public String getCommentPublisher() {
        return commentPublisher;
    }

    public void setCommentPublisher(String commentPublisher) {
        this.commentPublisher = commentPublisher;
    }

    public String getCommentContent() {
        return commentContent;
    }

    public void setCommentContent(String commentContent) {
        this.commentContent = commentContent;
    }

    public String getTopicName() {
        return topicName;
    }

    public void setTopicName(String topicName) {
        this.topicName = topicName;
    }

    @Override
    public String toString() {
        return "Comment{" +
                "commentId=" + commentId +
                ", commentPublisher='" + commentPublisher + '\'' +
                ", commentContent='" + commentContent + '\'' +
                ", topicName='" + topicName + '\'' +
                '}';
    }
}
